import request from '@/utils/request'

// 查询年度动态列表
export function listNdarticle(query) {
  return request({
    url: '/business/ndarticle/list',
    method: 'get',
    params: query
  })
}

export function allNdarticle(query) {
  return request({
    url: '/business/ndarticle/alllist',
    method: 'get',
    params: query
  })
}

// 查询年度动态详细
export function getNdarticle(id) {
  return request({
    url: '/business/ndarticle/' + id,
    method: 'get'
  })
}

// 新增年度动态
export function addNdarticle(data) {
  return request({
    url: '/business/ndarticle',
    method: 'post',
    data: data
  })
}

// 修改年度动态
export function updateNdarticle(data) {
  return request({
    url: '/business/ndarticle',
    method: 'put',
    data: data
  })
}

// 删除年度动态
export function delNdarticle(id) {
  return request({
    url: '/business/ndarticle/' + id,
    method: 'delete'
  })
}
